package edu.umd.ion.wavemeter.server;

import javax.persistence.EntityManagerFactory;

import edu.umd.ion.wavemeter.service.WavemeterData;

public class WavemeterConfiguration {
	private static WavemeterConfigurationInterface config = WavemeterConfigurationFactory.getConfig();

	public static int NumVirtChannels() {
		return config.NumVirtChannels();
	}
	
	public static int NumRawChannels() {
		return config.NumRawChannels();
	}
	
	public static int NumPIDChannels() {
		return config.NumPIDChannels();
	}
	
	public static ExposureControl ExposureControl(WavemeterData Data) {
		return config.ExposureControl(Data);
	}
	
	public static ChannelManager ChannelManager(PollingThreadInterface Device, WavemeterData data, ExposureControl c) {
		return config.ChannelManager(Device, data, c);
	}
	
	public static PIDControl PIDControl(WavemeterData Data, ChannelManager cm){
		return config.PIDControl(Data, cm);	
	}

	public static EntityManagerFactory createEntityManagerFactory() {
		return config.createEntityManagerFactory();
	}
	
	public static int getAnalogChannelOffset() {
		return config.getAnalogChannelOffset();
	}
}
